Skip to content

Extract event stream processing from PluginManager - #35

Open
strohganoff wants to merge 1 commit into
refactor/preexisting-code-cleanupfrom
refactor/event-stream-processing
Open

strohganoff wants to merge 1 commit into
refactor/preexisting-code-cleanupfrom
refactor/event-stream-processing

Conversation

@strohganoff

Copy link
Copy Markdown
Owner

Extract EventStreamProcessor to read validated events concurrently and dispatch them sequentially. Separate the WebSocket transport from its event listener while keeping validation, handler selection, and injectable resolution in PluginManager.

The processor uses TaskGroup, with backports installed only on Python 3.10. Ordinary processing failures can reach callers as an ExceptionGroup. The manager and transport group ordinary runtime and cleanup failures that reach their respective boundaries. A follow-up will address independent worker cancellation, listener cleanup ownership, and abnormal WebSocket disconnects.

Validation: 203 tests passed locally on Python 3.10 and 3.11.

@strohganoff
strohganoff force-pushed the refactor/event-stream-processing branch from 190c3ad to 0d7fdb7 Compare December 4, 2026 04:14
@strohganoff
strohganoff changed the base branch from main to refactor/preexisting-code-cleanup December 4, 2026 04:14
@strohganoff
strohganoff force-pushed the refactor/preexisting-code-cleanup branch from fc6b341 to 48572f2 Compare December 4, 2026 04:23
@strohganoff
strohganoff force-pushed the refactor/event-stream-processing branch from 0d7fdb7 to 6e52564 Compare December 4, 2026 04:23
Rebase onto semantic identifier types and runtime cleanup.
@strohganoff
strohganoff force-pushed the refactor/preexisting-code-cleanup branch from 48572f2 to f065408 Compare December 4, 2026 04:38
@strohganoff
strohganoff force-pushed the refactor/event-stream-processing branch from 6e52564 to 3617b98 Compare December 4, 2026 04:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant